home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 61 / CDRom61.iso / Programas / Express Search / exp_setup.exe / EXWEBDOCS.EXE / Express / Program / webdocs / template / checkchange.js < prev    next >
Encoding:
Text File  |  1998-08-04  |  594 b   |  26 lines

  1. $EXP_INCLUDE "checkbrowser.js"
  2. <SCRIPT LANGUAGE="JavaScript">
  3. <!--
  4. var changed = false;
  5.  
  6. function okToSwitch() {
  7.     if (changed) {
  8.         return (window.confirm('Some options have been changed on the current tabbed page. \nClick OK to discard the changes and display the other tabbed page. \nClick Cancel to return to the current tabbed page where you can apply the changes.'));
  9.     }
  10.     else {
  11.         return true;
  12.     }
  13. }
  14.  
  15. function closeThisWindow() {
  16.     if (self.opener !=  null) {
  17.         if (isNavigator) self.opener.focus();
  18.         self.close();
  19.     }
  20.     else
  21.         self.location = "/";
  22. }
  23. //-->
  24. </SCRIPT>
  25.  
  26.